package Day08_20;

public class Test_Sleep01 {
    public static void main(String[] args) {
        MyThread03 t1 = new MyThread03();
        t1.setName("t1");
        t1.start();

        try {
            Thread.currentThread().sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        t1.interrupt();
        //System.out.println("Hello World!!!!");

    }
}

class MyThread03 extends Thread{
    @Override
    public void run() {
        System.out.println("MyThread03 begin!!!");

        try {
            Thread.sleep(1000*60*60);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

//        for (int i = 0; i < 10; i++) {
//            System.out.println(Thread.currentThread().getName()+"--->"+i);
//        }
        System.out.println("MyThread03 Out!!!");
    }
}